﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eVoteClient
{
    public partial class CheckVote : Form
    {
        public CheckVote(string systemVote)
        {
            InitializeComponent();
            systemVoteText.Text = systemVote;
            systemVoteText.Enabled = false;

            trueLabel.Visible = false;
            falseLabel.Visible = false;
        }

        private void checkButton_Click(object sender, EventArgs e)
        {
            if (systemVoteText.Text.Equals(emailVoteText.Text))
            {
                trueLabel.Visible = true;
                falseLabel.Visible = false;
            }
            else
            {
                trueLabel.Visible = false;
                falseLabel.Visible = true;
            }
        }
    }
}
